<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <table>
        <thead>
          <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <tr v-for="item in users">
            <td>{{item.id}}</td>
            <td>{{item.name}}</td>
            <td>{{item.age}}</td>
            <td>{{item.gender===1?'男':'女'}}</td>
            <td>
              <button>删除</button>
              <button>编辑</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {
          users: [
            { id: 1, name: "jack", age: 20, gedner: 1 },
            { id: 2, name: "lili", age: 22, gedner: 2 },
            { id: 3, name: "lucy", age: 19, gedner: 2 },
          ],
        },
        methods: {},
      });
    </script>
  </body>
</html>
